    <div class="container">
      <div class="row">
        <div class="col-lg-10 col-lg-offset-1">
          <div class="bg-putih">

            <div class="jdl-page">
              <h1>10 Besar Penyakit RJTL</h1>
              <div class="clearfix"></div>
            </div>
            <form action="{site_url('peserta')}" class="form-inline" role="form" method="post">
              <div class="form-group">
               
              </div>
              <div class="form-group">
                
                <input type="hidden" name="{$this->security->get_csrf_token_name()}" value="{$this->security->get_csrf_hash()}">
              </div>
              <!-- <input type="submit" name="submit" class="btn btn-primary" value="Tampilkan"> -->
            </form>
            <div id="show_data">
              <table class="table table-striped table-bordered table-hover margintop20">
                <thead>
                  <tr>
                    <th width="40px" rowspan="2">NO</th>
                    <th rowspan="2">KODE</th>
                    <th rowspan="2">NAMA PENYAKIT</th>
                    <th colspan="2">KASUS</th>
                    <th rowspan="2">TOTAL KASUS</th>
                    <th rowspan="2">TOTAL KUNJUNGAN</th>
                  </tr>
                  <tr>
                    <th>Laki-laki</th>
                    <th>Perempuan</th>
                  </tr>
                </thead>
                <tbody>
                  {$i = 1}
                  {foreach $results as $value}
                    <tr>
                      <td>{$i++}</td>
                      <td>{$value['icd10']}</td>
                      <td>{$value['penyakit']}</td>
                      <td>{$value['laki']}</td>
                      <td>{$value['perempuan']}</td>
                      <td>
                        {$total = $value['laki'] + $value['perempuan']}
                        {$total}
                      </td>
                      <td>{$value['kunjungan']}</td>
                    </tr>
                  {/foreach}
                </tbody>
              </table>
              <ul class="pagination pagination-sm no-margin pull-right">
                {$pagination}
              </ul> 
            </div>      
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
    </div> <!-- /container -->

<script>
  function ajax_desa(){
    var data = {     
      id_kecamatan: $("#kecamatan").val(),
      {$this->security->get_csrf_token_name()}: "{$this->security->get_csrf_hash()}"
    };
    $.ajax({
      type: "POST",
      data: data,
      url: "{site_url('peserta/desa')}",
      success: function(data){
        $("#desa").html(data);
      }
    })
  }
</script>